<?php
$this->pageTitle = 'My To-dos - ' . Yii::app()->name;
$this->sectionTitle = 'To-dos';

$this->menu = array(
    array('label' => '<span class="todo-calendar-view"></span>view calendar', 'url' => array('todo/viewCalendar'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="todo-add"></span>add to-do', 'url' => array('todo/create'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="todo-manage"></span>manage to-dos', 'url' => array('todo/manage'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="list-add"></span>add to-do list', 'url' => array('todolist/create'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="list-manage"></span>manage to-do lists', 'url' => array('todoList/manage'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
);

$this->viewModes = array(
    array('label' => 'all to-dos', 'url' => array('todo/index'),),
    array('label' => 'all to-do lists', 'url' => array('todoList/index'),),
);
?>

<?php

$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $dataProvider,
    'itemView' => '_view',
    'itemsTagName' => 'ul',
    'template' => '{sorter}{items}{pager}',
    'itemsCssClass' => 'listing list-view',
    'htmlOptions' => array('class' => '',),
));
?>
